﻿using System;
using System.Collections.Generic;
using System.Text;

using NHibernate;
using Zwms.Data.Base;
using System.Runtime.Serialization;

namespace Zwms.Data.BusinessObjects
{
    public partial class SysConfig : BusinessBase<string>
    {
        #region Declarations

        private string _configCode = String.Empty;
        private string _printerCfg = String.Empty;

        #endregion

        #region Constructors

        public SysConfig() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();

            sb.Append(this.GetType().FullName);
            sb.Append(_configCode);
            sb.Append(_printerCfg);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties
        [DataMember]
        public virtual string ConfigCode
        {
            get { return _configCode.TrimEnd(); }
            set
            {
                _configCode = value;
            }
        }

        [DataMember]
        public virtual string PrinterCfg
        {
            get { return _printerCfg.TrimEnd(); }
            set
            {
                _printerCfg = value;
            }
        }
        #endregion

    }
}
